<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="always" name="referrer">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>信息详情</title>
    <link rel="stylesheet" href="/LianniuWeb/css/seller/reset.css">
    <link rel="stylesheet" href="/LianniuWeb/css/seller/information_detail.css">
</head>
<body>
<div class="ranking_header">
    <div class="back_btn" onclick="window.location.href='/LianniuWeb/supply/personal/information.do'"></div>
    <p>个人信息</p>
    <span id="quit">退出</span>
</div>
<div class="personal_box2">
    <span class="">头像</span>
    <p></p>
    <div id="photo_box"><span></span></div>
</div>
<div class="personal_box phone2">
    <span class="collection1">手机号码</span>
    <p></p>
    <div id="phone"></div>
</div>
<div class="personal_box name"  onclick="window.location.href='/LianniuWeb//supply/personal/updateSupplyName.do'">
    <span class="">用户名</span>
    <p></p>
    <div class="" id="supplyName"></div>
</div>
<div class="personal_box" onclick="window.location.href='/LianniuWeb//supply/personal/compName.do'">
    <span class="">厂家名称</span>
    <p></p>
</div>
<div class="personal_box" onclick="window.location.href='/LianniuWeb//supply/personal/changeAddress.do'">
    <span class="">发货地址</span>
    <p></p>
</div>
<div class="personal_box" onclick="window.location.href='/LianniuWeb//supply/personal/mainProduct.do'">
    <span class="">主营品种</span>
    <p></p>
</div>
<div class="personal_box" onclick="window.location.href='/LianniuWeb//supply/personal/wechat.do'">
    <span class="">微信号</span>
    <p></p>
</div>
<!--<div class="padding_both">-->
    <!--<input type="button" value="保存" class="load_btn">-->
<!--</div>-->
<script src="/LianniuWeb/js/jquery/jquery-1.11.3.min.js"></script>
<script src="/LianniuWeb/js/underscore/underscore.js"></script>
<script src="/LianniuWeb/js/commons/commons.js"></script>
<script src="/LianniuWeb/js/commons/util.js"></script>
<script type="text/javascript" src="/LianniuWeb/js/buyer/flexible.js"></script>
<script>
    $(function() {
        $.ajax({
            url: server_url + '/rest/supply/personal/supplyinfo.do',
            data: {userId: userid},
            success: function (data) {
                console.log(data)
                $("#supplyName").text(data.data.supplyname);
                $("#phone").text(data.data.resmobile);
            }
        });
        $("#quit").click(function(){
            confirmUtil('确定退出吗?', function(r){
                if(r){
                    localStorage.clear();
                    window.location.href=server_url+"login.do?supply=1";
                }
            })
        });
        $(function(){
            $.ajax({
                url:server_url + '/rest/frontUser/getFrontUser.do',
                data:{usersid:userid},
                success:function(data){
                    console.log(data);
                    if (data.data[0].picPath != null && data.data[0].picPath != ''){
                        $("#photo_box").css("background","#d6ffeb url("+data.data[0].picPath+") no-repeat center");
                        $("#photo_box").css("background-size","cover");
                    }
                }
            })
        })
    })

</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?867c800f411683d2a7fa9eb1eabd9736";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>